package com.rk.live.uitl;

/**
 * 系统全局变量
 */
public class Constant {

	/**
	 * 是否输出日志
	 */
	public final static boolean DEBUG = true;
	/**
	 * 日志标示
	 */
	public final static String DEBUG_TAG = "debug";
	/**
	 * 记录日志到文�?
	 */
	public final static boolean LOGINFILE = true;
	/**
	 * 当前数据库版�?
	 */
	public final static int DB_VERSION = 1;
	/**
	 * 通知id
	 */
	public final static int NOTIFICATION_ID = 100;


	/**
	 * 型号
	 */
	public static String MODEL = "TEST_V2";// Build.MODEL + "_EMEA"; //

	// // CU服务器存放的下载信息
	// public static String DOWNLOAD_INFO =
	// "http://mini-store.my-onetouch.com/TcloudServer/widget/findApksCollection/";
	//
	// // 获取列表版本�?
	// public static String DOWNLOAD_VERSION =
	// "http://mini-store.my-onetouch.com/TcloudServer/widget/versionByWidget/";
	//
	// // 本app更新
	// public static String UPDATA_VERSION =
	// "http://mini-store.my-onetouch.com/TcloudServer/widget/widgetVersionByWidget/";
	//
	// // 提交下载次数
	// public static String UPDATA_DOWNLOAD_NUM =
	// "http://mini-store.my-onetouch.com/TcloudServer/widget/updateDownNumByWidge/";
	//
	// // 获取下载次数
	// public static String GET_DOWNLOAD_NUM =
	// "http://mini-store.my-onetouch.com/TcloudServer/widget/getDownNumByWidget/";

	// 服务器存放的下载信息
	public static String DOWNLOAD_INFO = "http://mini-store.my-onetouch.com/TcloudServer/widget/findApksLanguageByWidget";

	// 获取列表版本�?
	public static String DOWNLOAD_VERSION = "http://mini-store.my-onetouch.com/TcloudServer/widget/versionByWidget/";

	// 本app更新
	public static String UPDATA_VERSION = "http://mini-store.my-onetouch.com/TcloudServer/widget/widgetVersionByWidget/";

	// 提交下载次数
	public static String UPDATA_DOWNLOAD_NUM = "http://mini-store.my-onetouch.com/TcloudServer/widget/updateDownNumByWidge/";

	// 获取下载次数
	public static String GET_DOWNLOAD_NUM = "http://mini-store.my-onetouch.com/TcloudServer/widget/getDownNumByWidget/";

	public static int INIT_VERSION = 0;

	//
	// /**
	// * 获取图片超时时间
	// */
	// public final static int GET_NET_PICTURE_TIMEOUT = 30 * 1000;
	// /**
	// * 网络超时时间
	// */
	// public final static int NET_TIMEOUT = 30 * 1000;
	// /**
	// * loading条超时时�?
	// */
	// public final int LOADING_EXPIRED_TIMEOUT = 30 * 1000;
	//

	/**
	 * 定义action
	 * 
	 * @author hui.zhu
	 * 
	 */
	public interface Action {
		/**
		 * 服务监听的广�?
		 */
		public final static String SERVICE = "cn.onetouchlive.action.service";
		/**
		 * 安装包有变化
		 */
		public final static String PACKAGE_CHANGE = "com.onetouchlive.action.package.change";
		/**
		 * 网络error
		 */
		public final static String NET_ERROR = "com.onetouchlive.action.net.error";
		/**
		 * 网络error
		 */
		public final static String DOWNLOAD_ERROR = "com.onetouchlive.action.download.error";
		/**
		 * �?��appslist
		 */
		public final static String APPS_NOT_UPDATE = "com.onetouchlive.action.apps.not.update";
		/**
		 * 更新appslist
		 */
		public final static String APPS_UPDATE = "com.onetouchlive.action.apps.update";
		/**
		 * 自身软件更新
		 */
		public final static String APP_UPDATE = "com.onetouchlive.action.app.update";
		/**
		 * 更新下载进度
		 */
		public final static String UPDATE_DOWNLOAD_PROGRESS = "com.onetouchlive.action.update.download.progress";
		/**
		 * 下载over
		 */
		public final static String DOWNLOAD_OVER = "com.onetouchlive.action.download.over";
		/**
		 * File异常
		 */
		public final static String FILE_ERROR = "com.onetouchlive.action.file.error";

	}

	/**
	 * 参数名字
	 * 
	 * @author hui.zhu
	 * 
	 */
	public interface Parameter {
		// 命令
		public final static String COMMAND = "command";

		// app�?
		public static final String NAME = "name";

		// 包名
		public static final String PACKAGE_NAME = "package_name";

		// 下载进度
		public static final String DOWNLOAD_PROGRESS = "download_progress";

		// status
		public static final String STATUS = "status";

		// URL
		public static final String URL = "url";

		// 返回失败状�?
		public static final String FAILE = "fail";

		// 返回成功状�?
		public static final String OK = "ok";

	}

	/**
	 * 与服务器交互命令
	 * 
	 * @author hui.zhu
	 * 
	 */
	public interface Command {
		/**
		 * 获取apps列表
		 */
		public final static int APPS_LIST = 1;
		/**
		 * 版本更新
		 */
		public final static int CHECK_UPDATE = 2;
		/**
		 * 更新下载次数
		 */
		public final static int UPDATE_DOWNLOAD_NUM = 3;
	}

	/**
	 * widget控件更新广播
	 */
	public static final String WIDGET_UPDAGE_ONE = "action.APPWIDGET_UPDATE_ONE";
	public static final String WIDGET_UPDAGE_TWO = "action.APPWIDGET_UPDATE_TWO";
	public static final String WIDGET_UPDAGE_THREE = "action.APPWIDGET_UPDATE_THREE";
}
